from api.basic_api import BaseBuyerApi


class MemberCommentsApi(BaseBuyerApi):
    def __init__(self,order_sn,sku_id):
        super().__init__()
        self.url=f'{self.host}/members/comments'
        self.method ='post'
        self.json={
                "order_sn": order_sn,
                "delivery_score": 5,
                "description_score": 5,
                "service_score": 5,
                "comments": [{
                    "sku_id": sku_id,
                    "content": "想评论一下",
                    "grade": "neutral",
                    "images": []
                }]
            }
